package com.example.ddms.ddms;

import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
    private static final String Main_TAG="MainActivity";
    private Button bt;
    public  void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        bt = (Button)findViewById(R.id.bt);
        bt.setOnClickListener(new Button.OnClickListener() {
            public void onClick(View v) {
                Log.v(MainActivity.Main_TAG, "This is Verbose.");
                Log.d(MainActivity.Main_TAG, "This is Debug.");
                Log.i(MainActivity.Main_TAG, "This is Informating.");
                Log.w(MainActivity.Main_TAG, "This is Warning.");
                Log.e(MainActivity.Main_TAG, "This is Erro.");
            }
        });
    }
}
